package com.service.impl;

import com.dao.ServiceTypeDao;
import com.pojo.ServiceType;
import com.service.ServiceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServiceTypeServiceImpl implements ServiceTypeService {
    @Autowired
    private ServiceTypeDao serviceTypeDao;
    @Override
    public List<ServiceType> typeFindAll() {

        return serviceTypeDao.typeFindAll();
    }

    @Override
    public ServiceType findByTypeId(Integer typeId) {
        return serviceTypeDao.findByTypeId(typeId);
    }
}
